/*

Copyright 2015-present Palantir Technologies, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0.

*/

@import "@blueprintjs/core/lib/css/blueprint.css";
@import "@blueprintjs/icons/lib/css/blueprint-icons.css";
@import "@blueprintjs/colors/lib/scss/colors";
@import "@blueprintjs/core/src/common/variables";
@import "svgs";

$body-background-color: $black;

$canvas-height: 630px;
$container-width: 760px;

$mobile-breakpoint: 425px;
$tablet-breakpoint: 768px;

html {
  background-color: $body-background-color;
  text-size-adjust: 100%;
}

body {
  background-color: $body-background-color;
  margin: 0;
  padding: 0;
}

.landing-container {
  margin: 0 auto;
  max-width: $container-width;
  padding: 0 $pt-spacing * 5;
}

header {
  background-color: transparent;
  height: $canvas-height;
  margin: 0;
  overflow: hidden;
  position: relative;
  text-align: center;
  user-select: none;

  .landing-container {
    @include position-all(absolute, 0);
    pointer-events: none;
    z-index: $pt-z-index-base;
  }

  h1 {
    clear: both;
    color: $white;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 auto;
    margin-top: $pt-spacing * 82.5;
  }

  h3 {
    color: $white;
    font-weight: 400;
    margin-bottom: $pt-spacing * 7.5;
    margin-top: $pt-spacing * 7.5;
    opacity: 0.8;
  }

  .#{$ns}-button.landing-button {
    color: rgba($white, 0.7);
    pointer-events: all;
    position: relative;

    &:hover {
      background-color: rgba($white, 0.2);
      color: rgba($white, 0.7);
    }

    &:active {
      background-color: rgba($white, 0.4);
      color: $white;
    }
  }

  .#{$ns}-icon-dot {
    color: rgba($white, 0.5);
    margin: $pt-spacing;
  }

  canvas {
    @include position-all(absolute, 0);
  }
}

footer {
  background-color: transparent;
}

.landing-about {
  .landing-container {
    @include pt-flex-container(column, $pt-spacing * 7.5);
    align-items: center;
    padding-bottom: $pt-spacing * 15;
    padding-top: $pt-spacing * 15;
    text-align: center;
  }

  img {
    width: $pt-spacing * 15;
  }

  p:first-of-type {
    font-size: $pt-font-size-large;
  }

  p:last-of-type {
    font-weight: 300;
  }

  .landing-separator {
    background-color: $dark-gray5;
    height: $pt-spacing * 0.5;
    width: $pt-spacing * 10;
  }
}

.landing-copyright {
  &::before {
    background-image: linear-gradient(
      90deg,
      rgba($white, 0) 0%,
      rgba($white, 0.3) 50%,
      rgba($white, 0) 100%
    );
    content: "";
    display: block;
    height: 1px;
  }

  .landing-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: $pt-navbar-height;
    padding: $pt-spacing;
  }
}

@media (max-width: $mobile-breakpoint) {
  header {
    height: $pt-spacing * 200;

    h1 {
      font-size: $pt-spacing * 9;
    }

    h3 {
      font-size: $pt-spacing * 4.5;
      margin-bottom: $pt-spacing * 6;
    }

    .#{$ns}-icon-dot {
      display: block;
    }
  }
}

@media (max-width: $tablet-breakpoint) {
  .landing-copyright {
    .landing-container {
      flex-direction: column;
    }

    .landing-button {
      margin: $pt-spacing;
    }
  }
}
